package com.nulldev.util.security.hashAPI.impls.md5;

import com.nulldev.util.security.hashAPI.Hashable;

public class MD5 implements Hashable<byte[]> {

	@Override
	public byte[] hash(byte[] data) {
		return com.nulldev.util.security.hashing.MD5.MD5.getMD5(data);
	}

	@Override
	public byte[] raw_hash(byte[] data) {
		return com.nulldev.util.security.hashing.MD5.MD5.getMD5(data);
	}

	@Override
	public String id() {
		return "native.md5";
	}

	@Override
	public String[] hashes() {
		return new String[]
			{ "MD5" };
	}

	@Override
	public Hashable<?> clone() {
		return this;
	}

}
